#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

int strStr(char* haystack, char* needle)
{
    int length = strlen(needle);

    for (int i = 0; i < strlen(haystack); i++)
    {
        if (strncmp(haystack + i, needle, length) == 0)
            return i;
    }

    return -1;
}

int main()
{
    return 0;
}